set config_file_path=%1

if not exist %config_file_path% (
    echo %config_file_path% not found
    exit /b 1
)

if "%2"=="" (
    echo Usage: %0 "<config_file_path> <key>"
    exit /b 1
)

for /f "tokens=1,2 delims==" %%a in (%config_file_path%) do (
    if "%%a"=="%2" (
        set %3=%%b
    )
)